<!DOCTYPE html>
<html lang="en">





<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.png">
  <link rel="icon" type="image/png" href="/img/favicon.png">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="My Personal Website For Blog">
  <meta name="author" content="黄宇辉">
  <meta name="keywords" content="learning note,hexo blog">
  <title>hello Python - 欢迎参观小灰灰的网站哟 ヾ(◍°∇°◍)ﾉﾞ ~</title>

  <link  rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.staticfile.org/github-markdown-css/4.0.0/github-markdown.min.css" />
  <link  rel="stylesheet" href="/lib/hint/hint.min.css" />

  
    <link  rel="stylesheet" href="https://cdn.staticfile.org/highlight.js/10.0.0/styles/vs2015.min.css" />
  

  


<!-- 主题依赖的图标库，不要自行修改 -->
<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_yg9cfy8wd6.css">

<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_pjno9b9zyxs.css">

<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script  src="/js/utils.js" ></script>
</head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/">&nbsp;<strong>ANONYMOUS</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                Home
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                Archives
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                Tags
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                About
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="view intro-2" id="background" parallax=true
         style="background: url('/img/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="container text-center white-text fadeInUp">
            <span class="h2" id="subtitle">
              
            </span>

            
              
  <div class="mt-3 post-meta">
    <i class="iconfont icon-date-fill" aria-hidden="true"></i>
    <time datetime="2019-11-08 19:45">
      November 8, 2019 pm
    </time>
  </div>


<div class="mt-1">
  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      1.3k 字
    </span>
  

  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      19
       分钟
    </span>
  

  
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid">
  <div class="row">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-md">
      <div class="container nopadding-md" id="board-ctn">
        <div class="py-5" id="board">
          <div class="post-content mx-auto" id="post">
            
            <article class="markdown-body">
              <h2 id="学习笔记-hello-Python"><a href="#学习笔记-hello-Python" class="headerlink" title="学习笔记 : hello Python"></a>学习笔记 : hello Python</h2><h3 id="Python-简介"><a href="#Python-简介" class="headerlink" title="Python 简介"></a>Python 简介</h3><p><em>Python ( 英国发音：<code>/ˈpaɪθən/</code>，美国发音：<code>/ˈpaɪθɑːn/</code> )，是一种面向对象的解释型计算机程序设计语言，由荷兰人 GuidovanRossum 于 1989 年发明，第一个公开发行版发行于 1991 年</em></p>
<p><em>Python 是纯粹的自由软件，源代码和解释器 CPython 遵循 GPL( GNUGeneralPublicLicense )协议. Python语法简洁清晰，特色之一是强制用空白符( whitespace )作为语句缩进</em></p>
<h3 id="Python-的应用"><a href="#Python-的应用" class="headerlink" title="Python 的应用"></a>Python 的应用</h3><ul>
<li>系统编程</li>
<li>图形处理</li>
<li>数学处理</li>
<li>文本处理</li>
<li>数据库编程</li>
<li>网络编程</li>
<li>Web编程</li>
<li>多媒体应用</li>
<li>pymo引擎</li>
<li>黑客编程</li>
</ul>
<h3 id="Python-的应用领域"><a href="#Python-的应用领域" class="headerlink" title="Python 的应用领域"></a>Python 的应用领域</h3><ul>
<li>Web 应用开发</li>
<li>操作系统管理，服务器运维的自动化脚本</li>
<li>科学计算</li>
<li>桌面软件</li>
<li>服务器软件( 网络软件 )</li>
<li>游戏</li>
<li>构思实现，产品早期原型迭代</li>
</ul>
<h3 id="Python-的应用方向"><a href="#Python-的应用方向" class="headerlink" title="Python 的应用方向"></a>Python 的应用方向</h3><ul>
<li>常规软件开发</li>
<li>科学计算</li>
<li>自动化运维</li>
<li>云计算</li>
<li>WEB开发</li>
<li>网络爬虫</li>
<li>数据分析</li>
<li>人工智能</li>
</ul>
<h3 id="Python-程序的执行原理"><a href="#Python-程序的执行原理" class="headerlink" title="Python 程序的执行原理"></a>Python 程序的执行原理</h3><p><em>Python 不同于类似 C/C++ 之类的编译性语言，其不需要编译成二进制代码，它可以直接从源代码运行程序. 既 Python 解释器先会将源代码转换为字节码( 并非二进制机器码，其需要进一步编译才能够被机器识别. 如果 Python 进程在机器上拥有写入权限，那么它将把程序的字节码保存为一个以<code>.pyc</code>为扩展名的文件 )，然后再把编译好的字节码转发到 Python 虚拟机( PVM )中进行执行.</em></p>
<h3 id="实现一个简单的学生管理系统"><a href="#实现一个简单的学生管理系统" class="headerlink" title="实现一个简单的学生管理系统"></a>实现一个简单的学生管理系统</h3><p><em>早上在图书馆花了<code>2</code>个小时左右时间看完了 <code>《Python 快速编程入门》</code> 书籍的前六章，毕竟我是有编程基础的嘿嘿，况且编程语言之间是相通的. 为了熟悉 Python 函数的基本使用，晚上回到寝室写了一个简单的学生管理系统，相比 <code>hello world implemented by Python</code> 程序是不是有点急啦哈哈哈~ 代码如下所示 :</em></p>
<div class="hljs"><pre><code class="hljs python"><span class="hljs-string">"""
Project name : python-learning
Description : A SIMPLE STUDENT MANAGEMENT SYSTEM
Author : 黄宇辉
Version : 1.0
Website : https://yubuntu0109.github.io/
Created on 11/8/2019-6:47 PM
"""</span>

<span class="hljs-comment"># CREATE A LIST WHICH BE USED TO STORE ALL OF STUDENT INFORMATIONS</span>
student_infos = []


<span class="hljs-comment"># OUTPUT THE MENU INFO INTO THE CONSOLE</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">print_menu</span><span class="hljs-params">()</span>:</span>
    print(<span class="hljs-string">"="</span> * <span class="hljs-number">50</span>)
    print(<span class="hljs-string">"### A SIMPLE STUDENT MANAGEMENT SYSTEM v1.0 ###"</span>)
    print(<span class="hljs-string">"1:ADD THE STUDENT INFORMATION"</span>)
    print(<span class="hljs-string">"2:DELETE THE STUDENT INFORMATION"</span>)
    print(<span class="hljs-string">"3:MODIFY THE STUDENT INFORMATION"</span>)
    print(<span class="hljs-string">"4:DISPLAY ALL OF STUDENT INFORMATIONS"</span>)
    print(<span class="hljs-string">"5:SAVE ALL OF STUDENT INFORMATIONS"</span>)
    print(<span class="hljs-string">"0:EXIT"</span>)
    print(<span class="hljs-string">"="</span> * <span class="hljs-number">50</span>)


<span class="hljs-comment"># ADD A NEW STUDENT INFORMATION</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">add_info</span><span class="hljs-params">()</span>:</span>
    new_name = input(<span class="hljs-string">"PLEASE ENTER THE NEW STUDENT'S NAME: "</span>)
    new_sex = input(<span class="hljs-string">"PLEASE ENTER THE NEW STUDENT'S SEX: "</span>)
    new_phone = input(<span class="hljs-string">"PLEASE ENTER THE NEW STUDENT'S PHONE: "</span>)
    new_info = &#123;<span class="hljs-string">'name'</span>: new_name, <span class="hljs-string">'sex'</span>: new_sex, <span class="hljs-string">'phone'</span>: new_phone&#125;
    student_infos.append(new_info)


<span class="hljs-comment"># DELETE THE SPECIFIED STUDENT INFORMATION BY NO</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">del_info</span><span class="hljs-params">()</span>:</span>
    del_number = int(input(<span class="hljs-string">"PLEASE THE SPECIFIED STUDENT' NO: "</span>)) - <span class="hljs-number">1</span>  <span class="hljs-comment"># index</span>
    <span class="hljs-keyword">del</span> student_infos[del_number]


<span class="hljs-comment"># MODIFY THE SPECIFIED STUDENT INFORMATION BY NO</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">modify_info</span><span class="hljs-params">()</span>:</span>
    student_id = int(input(<span class="hljs-string">"PLEASE THE STUDENT NO: "</span>))
    new_student_name = input(<span class="hljs-string">"PLEASE ENTER THE NEW NAME: "</span>)
    new_student_sex = input(<span class="hljs-string">"PLEASE ENTER THE NEW SEX: "</span>)
    new_student_phone = input(<span class="hljs-string">"PLEASE ENTER THE NEW PHONE: "</span>)
    student_infos[student_id - <span class="hljs-number">1</span>][<span class="hljs-string">'name'</span>] = new_student_name
    student_infos[student_id - <span class="hljs-number">1</span>][<span class="hljs-string">'sex'</span>] = new_student_sex
    student_infos[student_id - <span class="hljs-number">1</span>][<span class="hljs-string">'phone'</span>] = new_student_phone


<span class="hljs-comment"># DISPLAY ALL OF STUDENT INFORMATIONS</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">show_infos</span><span class="hljs-params">()</span>:</span>
    print(<span class="hljs-string">"="</span> * <span class="hljs-number">50</span>)
    print(<span class="hljs-string">"ALL OF STUDENT INFORMATION BE SHOWED AS FOLLOW"</span>)
    print(<span class="hljs-string">"="</span> * <span class="hljs-number">50</span>)
    print(<span class="hljs-string">"NO       NAME        SEX     PHONE"</span>)
    i = <span class="hljs-number">1</span>
    <span class="hljs-keyword">for</span> temp <span class="hljs-keyword">in</span> student_infos:
        print(<span class="hljs-string">"%d       %s      %s      %s"</span> % (i, temp[<span class="hljs-string">'name'</span>], temp[<span class="hljs-string">'sex'</span>], temp[<span class="hljs-string">'phone'</span>]))
        i += <span class="hljs-number">1</span>


<span class="hljs-comment"># SAVE ALL OF STUDENT INFORMATIONS</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">save_data</span><span class="hljs-params">()</span>:</span>
    <span class="hljs-keyword">try</span>:
        file = open(<span class="hljs-string">"db.data"</span>, <span class="hljs-string">"w"</span>)
        file.write(str(student_infos))
        file.close()
    <span class="hljs-keyword">except</span> FileNotFoundError:
        print(<span class="hljs-string">"CATCH THE EXCEPTION: THE SPECIFIED FILE NOT EXIST!"</span>)
    <span class="hljs-keyword">else</span>:  <span class="hljs-comment"># so simple and so cool than Java</span>
        print(<span class="hljs-string">"SAVE ALL OF STUDENT INFORMATIONS SUCCESSFULLY"</span>)


<span class="hljs-comment"># RECOVER ALL OF STUDENT INFORMATIONS</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">recover_data</span><span class="hljs-params">()</span>:</span>
    <span class="hljs-keyword">global</span> student_infos
    <span class="hljs-keyword">try</span>:
        file = open(<span class="hljs-string">"db.data"</span>, <span class="hljs-string">"wb+"</span>)  <span class="hljs-comment"># create new file if the specified file not exist</span>
        content = file.read()
        print(content)  <span class="hljs-comment"># throw the SyntaxError possibly: unexpected EOF while parsing</span>
        student_infos = eval(content)
        file.close()
    <span class="hljs-keyword">except</span> (SyntaxError, FileNotFoundError) <span class="hljs-keyword">as</span> exception_info:
        print(<span class="hljs-string">"CATCH THE EXCEPTION: %s"</span> % exception_info)


<span class="hljs-comment"># MAIN FUNCTION</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">main</span><span class="hljs-params">()</span>:</span>
    recover_data()  <span class="hljs-comment"># the specified file must store some datas before reading</span>
    <span class="hljs-keyword">while</span> <span class="hljs-literal">True</span>:
        print_menu()
        key = input(<span class="hljs-string">"PLEASE ENTER THE SPECIFIED NO OF MENU: "</span>)
        <span class="hljs-keyword">if</span> key == <span class="hljs-string">'1'</span>:
            add_info()
        <span class="hljs-keyword">elif</span> key == <span class="hljs-string">'2'</span>:
            del_info()
        <span class="hljs-keyword">elif</span> key == <span class="hljs-string">'3'</span>:
            modify_info()
        <span class="hljs-keyword">elif</span> key == <span class="hljs-string">'4'</span>:
            show_infos()
        <span class="hljs-keyword">elif</span> key == <span class="hljs-string">'5'</span>:
            save_data()
        <span class="hljs-keyword">elif</span> key == <span class="hljs-string">'0'</span>:
            quit_confirm = input(<span class="hljs-string">"ARE YOU SURE TO QUIT ?( Yes or No ): "</span>)
            <span class="hljs-keyword">if</span> quit_confirm == <span class="hljs-string">"Yes"</span>:
                <span class="hljs-keyword">break</span>
            <span class="hljs-keyword">else</span>:
                print(<span class="hljs-string">"ERROR : PLEASE ENTER THE RIGHT COMMAND !"</span>)


<span class="hljs-comment"># RUN</span>
main()</code></pre></div>

<p><em>程序运行结果如下所示 :</em></p>
<div class="hljs"><pre><code class="hljs asciidoc">CATCH THE EXCEPTION: unexpected EOF while parsing (&lt;string&gt;, line 0)

==================================================
### A SIMPLE STUDENT MANAGEMENT SYSTEM v1.0 ###
1:ADD THE STUDENT INFORMATION
2:DELETE THE STUDENT INFORMATION
3:MODIFY THE STUDENT INFORMATION
4:DISPLAY ALL OF STUDENT INFORMATIONS
5:SAVE ALL OF STUDENT INFORMATIONS
0:EXIT
==================================================
PLEASE ENTER THE SPECIFIED NO OF MENU: 1
PLEASE ENTER THE NEW STUDENT'S NAME: 黄宇辉
PLEASE ENTER THE NEW STUDENT'S SEX: 男
PLEASE ENTER THE NEW STUDENT'S PHONE: 00000000000


==================================================
### A SIMPLE STUDENT MANAGEMENT SYSTEM v1.0 ###
1:ADD THE STUDENT INFORMATION
2:DELETE THE STUDENT INFORMATION
3:MODIFY THE STUDENT INFORMATION
4:DISPLAY ALL OF STUDENT INFORMATIONS
5:SAVE ALL OF STUDENT INFORMATIONS
0:EXIT
==================================================
PLEASE ENTER THE SPECIFIED NO OF MENU: 4

==================================================
ALL OF STUDENT INFORMATION BE SHOWED AS FOLLOW
==================================================
NO       NAME        SEX     PHONE
1        黄宇辉       男      00000000000


==================================================
### A SIMPLE STUDENT MANAGEMENT SYSTEM v1.0 ###
1:ADD THE STUDENT INFORMATION
2:DELETE THE STUDENT INFORMATION
3:MODIFY THE STUDENT INFORMATION
4:DISPLAY ALL OF STUDENT INFORMATIONS
5:SAVE ALL OF STUDENT INFORMATIONS
0:EXIT
==================================================
PLEASE ENTER THE SPECIFIED NO OF MENU: 5
SAVE ALL OF STUDENT INFORMATIONS SUCCESSFULLY

<span class="hljs-bullet">. </span>. . . . .</code></pre></div>

<p><em>使用 Python 写完这个简单程序后，让我指间感觉超轻松，这语法太简洁了吧! 符合我的风格嘿嘿~</em></p>
<blockquote>
<p>推荐给初学 Python 同学的编程书籍 : 《Python 快速编程入门》- 黑马程序员编著  ( 本书对于现在的我来说，一周就可以完成全部的学习咯~ )</p>
</blockquote>

            </article>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/tags/Python/">Python</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" target="_blank" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！</p>
              
              
                <div class="post-prevnext row">
                  <div class="post-prev col-6">
                    
                    
                      <a href="/2019/11/15/Python%E6%93%8D%E4%BD%9CMySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E4%B9%8B%E5%9F%BA%E6%9C%AC%E7%9A%84CURD/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">Python操作MySQL数据库之基本的CURD</span>
                        <span class="visible-mobile">Previous</span>
                      </a>
                    
                  </div>
                  <div class="post-next col-6">
                    
                    
                      <a href="/2019/11/03/my-growth-journey-of-github/">
                        <span class="hidden-mobile">my growth journey of github</span>
                        <span class="visible-mobile">Next</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </div>
                </div>
              
            </div>

            
          </div>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;TOC</p>
  <div id="tocbot"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    
  </main>

  
    <a id="scroll-top-button" href="#" role="button">
      <i class="iconfont icon-arrowup" aria-hidden="true"></i>
    </a>
  

  
    <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">Search</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">keyword</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
  

  

  

  <footer class="mt-5">
  <div class="text-center py-3">
    <div>
      <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a>
      <i class="iconfont icon-love"></i>
      <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener">
        <span>Fluid</span></a>
    </div>
    
  <div class="statistics">
    
    

    
      
        <!-- 不蒜子统计PV -->
        <span id="busuanzi_container_site_pv" style="display: none">
            总访问量 
            <span id="busuanzi_value_site_pv"></span>
             次
          </span>
      
      
        <!-- 不蒜子统计UV -->
        <span id="busuanzi_container_site_uv" style="display: none">
            总访客数 
            <span id="busuanzi_value_site_uv"></span>
             人
          </span>
      
    
  </div>


    

    
  </div>
</footer>

<!-- SCRIPTS -->
<script  src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js" ></script>
<script  src="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/js/bootstrap.min.js" ></script>
<script  src="/js/debouncer.js" ></script>
<script  src="/js/main.js" ></script>

<!-- Plugins -->


  
    <script  src="/js/lazyload.js" ></script>
  



  <script defer src="https://cdn.staticfile.org/clipboard.js/2.0.6/clipboard.min.js" ></script>
  <script  src="/js/clipboard-use.js" ></script>



  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>





  <script  src="https://cdn.staticfile.org/tocbot/4.11.1/tocbot.min.js" ></script>
  <script>
    $(document).ready(function () {
      var boardCtn = $('#board-ctn');
      var boardTop = boardCtn.offset().top;

      tocbot.init({
        tocSelector: '#tocbot',
        contentSelector: 'article.markdown-body',
        headingSelector: 'h1,h2,h3,h4,h5,h6',
        linkClass: 'tocbot-link',
        activeLinkClass: 'tocbot-active-link',
        listClass: 'tocbot-list',
        isCollapsedClass: 'tocbot-is-collapsed',
        collapsibleClass: 'tocbot-is-collapsible',
        collapseDepth: 0,
        scrollSmooth: true,
        headingsOffset: -boardTop
      });
      if ($('.toc-list-item').length > 0) {
        $('#toc').css('visibility', 'visible');
      }
    });
  </script>



  <script  src="https://cdn.staticfile.org/typed.js/2.0.11/typed.min.js" ></script>
  <script>
    var typed = new Typed('#subtitle', {
      strings: [
        '  ',
        "hello Python&nbsp;",
      ],
      cursorChar: "_",
      typeSpeed: 70,
      loop: false,
    });
    typed.stop();
    $(document).ready(function () {
      $(".typed-cursor").addClass("h2");
      typed.start();
    });
  </script>



  <script  src="https://cdn.staticfile.org/anchor-js/4.2.2/anchor.min.js" ></script>
  <script>
    anchors.options = {
      placement: "right",
      visible: "hover",
      
    };
    var el = "h1,h2,h3,h4,h5,h6".split(",");
    var res = [];
    for (item of el) {
      res.push(".markdown-body > " + item)
    }
    anchors.add(res.join(", "))
  </script>



  <script  src="/js/local-search.js" ></script>
  <script>
    var path = "/local-search.xml";
    var inputArea = document.querySelector("#local-search-input");
    inputArea.onclick = function () {
      searchFunc(path, 'local-search-input', 'local-search-result');
      this.onclick = null
    }
  </script>



  <script  src="https://cdn.staticfile.org/fancybox/3.5.7/jquery.fancybox.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.staticfile.org/fancybox/3.5.7/jquery.fancybox.min.css" />

  <script>
    $('#post img:not(.no-zoom img, img[no-zoom]), img[zoom]').each(
      function () {
        var element = document.createElement('a');
        $(element).attr('data-fancybox', 'images');
        $(element).attr('href', $(this).attr('src'));
        $(this).wrap(element);
      }
    );
  </script>







  
  
    <script>
      !function (e, t, a) {
        function r() {
          for (var e = 0; e < s.length; e++) s[e].alpha <= 0 ? (t.body.removeChild(s[e].el), s.splice(e, 1)) : (s[e].y--, s[e].scale += .004, s[e].alpha -= .013, s[e].el.style.cssText = "left:" + s[e].x + "px;top:" + s[e].y + "px;opacity:" + s[e].alpha + ";transform:scale(" + s[e].scale + "," + s[e].scale + ") rotate(45deg);background:" + s[e].color + ";z-index:99999");
          requestAnimationFrame(r)
        }

        function n() {
          var t = "function" == typeof e.onclick && e.onclick;
          e.onclick = function (e) {
            t && t(), o(e)
          }
        }

        function o(e) {
          var a = t.createElement("div");
          a.className = "heart", s.push({
            el: a,
            x: e.clientX - 5,
            y: e.clientY - 5,
            scale: 1,
            alpha: 1,
            color: c()
          }), t.body.appendChild(a)
        }

        function i(e) {
          var a = t.createElement("style");
          a.type = "text/css";
          try {
            a.appendChild(t.createTextNode(e))
          } catch (t) {
            a.styleSheet.cssText = e
          }
          t.getElementsByTagName("head")[0].appendChild(a)
        }

        function c() {
          return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")"
        }

        var s = [];
        e.requestAnimationFrame = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) {
          setTimeout(e, 1e3 / 60)
        }, i(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"), n(), r()
      }(window, document);
    </script>
  














</body>
</html>
